<%@ page import="top.wuyang.study.javawebjdbc.entity.TbMovie" %>
<%@ page import="top.wuyang.study.javawebjdbc.dao.TbMovieDAO" %><%--
  Created by IntelliJ IDEA.
  User: lenovo
  Date: 2024/5/28
  Time: 14:41
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>提交数据页面</title>
</head>
<body>

<%
    request.setCharacterEncoding("UTF-8");
    TbMovie tbMovie = new TbMovie();
    tbMovie.setMovie( request.getParameter("movie") );
    tbMovie.setInfo( request.getParameter("info") );
    tbMovie.setScore( Integer.parseInt(request.getParameter("score")) );
    TbMovieDAO.insert(tbMovie);
%>


<script>
    alert("添加成功");
    location.href = "list.jsp";
</script>


</body>
</html>
